<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>法官查看</title>
		<link rel="stylesheet" type="text/css" href="../css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="../css/js2.css"/>
		<script src="../js/index.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div class="layout layout-judgecheck">
			<header>
				<div class="header-return">
					<a href="#"></a>
				</div>
				<h2>法官日记</h2>
				<div class="header-close">
					<a href="#"></a>
				</div>
			</header>
			<div class="judgecheck">
				<ul>
					<!--<li>
						<div class="judgecheck-box">
							<div class="judgecheck-identity">
								平民
							</div>
							<h4>1号</h4>
						</div>
					</li>
					<li>
						<div class="judgecheck-box">
							<div class="judgecheck-identity">
								平民
							</div>
							<h4>1号</h4>
						</div>
					</li>
					<li>
						<div class="judgecheck-box">
							<div class="judgecheck-identity">
								平民
							</div>
							<h4>1号</h4>
						</div>
					</li>
					<li>
						<div class="judgecheck-box">
							<div class="judgecheck-identity">
								平民
							</div>
							<h4>1号</h4>
						</div>
					</li>-->
				</ul>
			</div>
			<div class="judgecheck-btn">
				<a href="#">开始游戏</a>
			</div>
		</div>
		<script src="../js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js2.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				//接收传递过来的配比数组
				var passRandomAllPlayers = sessionStorage.getItem("randomAllPlayers").split(",");
				var txt = "";
				for(var i=0;i<passRandomAllPlayers.length;i++){
					if(passRandomAllPlayers[i] == "civilian"){
						txt += "<li><div class='judgecheck-box'><div class='judgecheck-identity'>平民</div><h4>"+(i+1)+"号</h4></div></li>";
					}else{
						txt += "<li><div class='judgecheck-box'><div class='judgecheck-identity'>杀手</div><h4>"+(i+1)+"号</h4></div></li>";
					}
				}
				$(".judgecheck ul").html(txt);
				console.log(passRandomAllPlayers);
			})
		</script>
	</body>
</html>
